package documents;

import java.util.List;

import domain.Publicacion;
import domain.Usuario;

@SuppressWarnings("unused")
public class DocUsuario {
	private String _id;
	private String _rev;
	private String username;
	private String password;
	private List<Publicacion> publicaciones;

	public DocUsuario(Usuario user) {
		this.username = user.getUsername();
		this.password = user.getPassword();
		this.publicaciones = user.getPublicaciones();
	}
	
	public void setId(String id) {
		this._id = id;
	}
	
	public String getId() {
		return this._id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public List<Publicacion> getPublicaciones() {
		return publicaciones;
	}
}
